User mailer website link fix

jamesperet 9 years ago
parent
commit
9678d0c902
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/mailers/user_mailer.rb

+ 1 - 1
app/mailers/user_mailer.rb

@@ -7,7 +7,7 @@ class UserMailer < ActionMailer::Base
7 7
          :subject   => ("Welcome to "+ config.website_name),
8 8
          :from      => config.contact_email,
9 9
          :from_name => config.website_name,
10
-         :body      => ("Thanks for registering to our website. " + config.website_link)
10
+         :body      => ("Thanks for registering to our website. " + (config.website_link if config.website_link != nil))
11 11
   end
12 12
 
13 13
   def contact_message(contact_message, to_address)